<include file="public@header" />
</head>
<body>
<div class="layui-fluid">
  <div class="layui-row">

    <div class="layui-page-header">
      <div class="layui-card">
        <div class="layui-page-header-content">
          <div class="layui-card-body">
            <div class="layui-ui-page-header-title" >
              提现列表<span class="layui-badge-rim page-content">提现列表</span>
            </div>
          </div>
          <div class="layui-tab layui-tab-brief">
            <ul class="layui-tab-title" id="tabHeader">
              <li class="layui-this"><a>列表</a></li>
            </ul>
          </div>
        </div>
      </div>
    </div>

    <div class="layui-page-content">
      <div class="layui-card">
        <div class="layui-card-body">
          <form class="layui-form" method="get" action="{:url('merchant.record/index')}">
            <div class="layui-form-item layuiadmin-card-text" style="margin-bottom: 0;">
              <div class="layui-inline">
                <label class="layui-form-label">状态</label>
                <div class="layui-input-inline">
                  <select class="layui-input" name="status">
                    <option value="">全部</option>
                    <volist name="status" id="v">
                      <option value="{$key}" <if condition="input('request.status') neq '' && input('request.status') eq $key">selected</if>>{$v}</option>
                    </volist>
                  </select>
                </div>
              </div>
              <div class="layui-inline">
                <label class="layui-form-label">提交时间</label>
                <div class="layui-input-inline">
                  <input type="text" class="layui-input js-bootstrap-date" name="start_time" id="start_time" value="{:input('request.start_time')}">
                </div>
                <div class="layui-form-mid">-</div>
                <div class="layui-input-inline">
                  <input type="text" class="layui-input js-bootstrap-date" name="end_time" id="end_time" value="{:input('request.end_time')}">
                </div>
              </div>

              <div class="layui-inline">
                <label class="layui-form-label">店铺ID</label>
                <div class="layui-input-inline">
                  <input type="text" class="layui-input" name="uid" value="{:input('request.uid')}" placeholder="请输入店铺ID">
                </div>
              </div>

              <div class="layui-inline">
                <label class="layui-form-label">关键字</label>
                <div class="layui-input-inline">
                  <input type="text" class="layui-input" name="keyword" value="{:input('request.keyword')}" placeholder="请输入订单号">
                </div>
              </div>
              <div class="layui-inline">
                <div class="layui-input-inline">
                  <input type="submit" class="layui-btn btn-primary" value="搜索" />
                  <a class="layui-btn layui-btn-danger btn-danger" href="{:url('cash/index')}">清空</a>
                </div>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>

    <div class="layui-page-content">
      <div class="layui-card">
        <div class="layui-card-body">
          <table class="layui-table" lay-even lay-size="lg">
            <thead>
            <tr>
              <th>用户</th>
              <th>提现金额</th>
              <th>提现账号</th>
              <th>状态</th>
              <th>三方交易订单号</th>
              <th>提交时间</th>
              <th>处理时间</th>
              <th>{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="list" item="vo">
              <tr>
                <td>{$vo['storeinfo']['name']} ({$vo['store_id']})</td>
                <td>{$vo['money']}</td>
                <td>
                  {$vo['account_bank']}<br>
                  {$vo['name']}<br>
                  {$vo['account']}<br>
                </td>
                <td>{$vo['status']}</td>
                <td>{$vo['trade_no']}</td>
                <td>{$vo['add_t']}</td>
                <td>{$vo['up_t']}</td>
                <td>
                  <a class="layui-bo layui-bo-small layui-bo-checked"  href='{:url("merchant.record/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
                </td>
              </tr>
            </foreach>
            </tbody>
          </table>
          <div class="pagination">{$page}</div>
        </div>
      </div>
    </div>
  </div>
</div>

<include file="public@script"/>
</body>
</html>